<layout name="layout" />

<!-- 列表 -->
<div class="list-div" id="listDiv">
	<table cellpadding="3" cellspacing="1" class="table table-hover" width="100%">
		<thead>
    	<tr class="success">
            <th >类型名称</th>
			<th width="30%">操作</th>
        </tr>
		</thead>
		<?php foreach ($data as $k => $v): ?>
		<tbody>
			<tr class="tron">
				<td><?php echo $v['type_name']; ?></td>
		        <td align="center">
					<a href="<?php echo U('Attribute/lst?type_id='.$v['id']); ?>">属性列表</a>&nbsp;
		        	<a href="<?php echo U('edit?id='.$v['id'].'&p='.I('get.p')); ?>" title="编辑">编辑</a> |
	                <a href="<?php echo U('delete?id='.$v['id'].'&p='.I('get.p')); ?>" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
		</tbody>
        <?php endforeach; ?>
	</table>
</div>

<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>

<script src="__PUBLIC__/Admin/Js/tron.js"></script>